package edu.sctu.practice.class01.zhoumengxue.assign.assign03.assign03_2;

/**
 * Created by ASUS on 2015/10/22.
 */
public class Main {

    public static void main(String[] args) {

        ComparableCircle comCircle1 = new ComparableCircle(3);
        ComparableCircle comCircle2 = new ComparableCircle(2);

        System.out.println("comCircle1的面积为:" + comCircle1.findArea());
        System.out.println("comCircle2的面积为:" + comCircle2.findArea());

        ComparableCylinder comCylinder1 = new ComparableCylinder(5, 2);
        ComparableCylinder comCylinder2 = new ComparableCylinder(5, 3);

        System.out.println("comCylinder1的面积为:" + comCylinder1.findVolume());
        System.out.println("comCylinder2的面积为:" + comCylinder1.findVolume());

        Max.max(comCircle1, comCircle2);
        Max.max(comCylinder1, comCylinder2);

    }
}
